import Vue from 'vue'

import VueRouter from 'vue-router'
Vue.use(VueRouter)

import VueResource from 'vue-resource'
Vue.use(VueResource)

import axios from 'axios'
Vue.prototype.$axios = axios



// import moment from ('moment')

// Vue.filter('dataFormat', function(dataStr, pattern="YYYY-MM-DD HH:mm:ss"){
//     return moment(dataStr).format(pattern)
// })



//Vue.http.options.root = 'https://unidemo.dcloud.net.cn';
//全局设置post表单发送的数据格式
//Vue.http.options.emulateJSON = true


//导入MUI的样式  
import './lib/mui/css/mui.min.css' 
import './lib/mui/css/icons-extra.css'

//按需导入mint-ui中的组件
// import { Header, Swipe, SwipeItem, Button, Lazyload } from 'mint-ui'
// Vue.component(Header.name, Header)
// Vue.component(Swipe.name, Swipe)
// Vue.component(SwipeItem.name, SwipeItem)
// Vue.component(Button.name, Button)
// Vue.use(Lazyload)
import MintUI from 'mint-ui'
Vue.use(MintUI)
import 'mint-ui/lib/style.css'

import VuePreview from 'vue-preview'
Vue.use(VuePreview)

// Vue.use(preview, {
//     mainClass: 'pswp--minimal--dark',
//     barsSize: {top: 0, bottom: 0},
//     captionEl: false,
//     fullscreenEl: false,
//     shareEl: false,
//     bgOpacity: 0.85,
//     tapToClose: true,
//     tapToToggleControls: false
//   })

import router from './router.js'

import app from './App.vue'

var vm = new Vue({
    el: '#app',
    render: c => c(app),
    router
})






